//
//  HWduiHuanTableViewCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2020/10/30.
//  Copyright © 2020 Chendaobin. All rights reserved.
//

#import "HWduiHuanTableViewCell.h"

@implementation HWduiHuanTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.beijingView.layer.cornerRadius =  12;
    self.beijingView.layer.masksToBounds = YES;
    self.beijingView.backgroundColor = [UIColor whiteColor];
    
    self.icoimagetupianiamg.layer.cornerRadius = 16;
    self.icoimagetupianiamg.backgroundColor = [UIColor redColor];
    self.icoimagetupianiamg.layer.masksToBounds = YES;
    
    self.chakanwuBUt.layer.cornerRadius = 11;
    self.chakanwuBUt.layer.masksToBounds = YES;
    self.chakanwuBUt.layer.borderWidth =1;
    self.chakanwuBUt.layer.borderColor =  RGB( 204, 204, 204).CGColor;
    
    
    [self.chakanwuBUt setTitle:[HWjianzhiduiObject keylocalization:@"查看物流"] forState:UIControlStateNormal];
    
    
    
    
     
    
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)setModel:(HWDuihuanModel *)model {
    
    _model = model;
    
    NSURL *url = [NSURL URLWithString:model.goods_thumb];
    
    [self.icoimagetupianiamg sd_setImageWithURL:url placeholderImage:nil];
    
    self.riqilabel.text = [NSString stringWithFormat:@"%@",model.add_time];
    self.duihuanLabel.text = [NSString stringWithFormat:@"%@",model.status];
    self.name1label.text = [NSString stringWithFormat:@"%@",model.goods_name];
    self.name2Label.text = [NSString stringWithFormat:@"%@",model.keywords];
   //   self.name3Label.text = [NSString stringWithFormat:@"%@",model.goods_num];
    self.righei1label.text = [NSString stringWithFormat:@"%@积分",model.market_price];
    self.righet2Label.text =  [NSString stringWithFormat:@"%@",model.goods_num];
    
    self.right3Label.text = [NSString stringWithFormat:@"消耗积分：%@",model.order_amount];
    
    
    
    
    
    
}
@end
